#include "Player.h"


namespace Sea_Battle
{
	void Player::Check()
	 {
		 int counter_of_ships = 0;
		 int our_field_arrea=100;
		 for(int i=0;i<=X_coordinat;i++)
		 {
			 for(int j=0;j<=Y_coordinat;j++)
			 {
				 if(our_field[i][j]==1)
				 {
					 counter_of_ships++;
				 }
			 }
		 }
		 if(counter_of_ships==0)
		 {
			 lose_flag=true;
		 }
	}
	Player::Player ()
	{
		lose_flag=false;
		for (int i=0;i<X_coordinat;i++)
	    {
			for (int j=0; j<Y_coordinat;j++)
			{
			 our_field[i][j] = 0;
			 npc_field [i][j]= 0;
			}
	    }
	}
	

}